let BASE_URL = "";
let BASE_NAME = "";
let TIME_OUT = 0;

// 根据当前的不同环境来设置不同的网络请求地址 或者其他需要判断的变量
let env = process.env.NODE_ENV;
if (env === "development") {
  (BASE_URL = "http://152.136.185.210:5000"), (TIME_OUT = 10000);
} else if (env === "production") {
  (BASE_URL = "http://codervans.org/production"), (BASE_NAME = "production");
} else if (env === "test") {
  (BASE_URL = "http://codervans.org/test"), (BASE_NAME = "test");
}

export { BASE_URL, BASE_NAME, TIME_OUT };
